home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / aijournl / 1986_10 / aiapp7.fig < prev    next >
Text File  |  1986-07-16  |  768b  |  20 lines

  1.  
  2.  
  3.      sentence ::- rule | query | command
  4.      rule ::- head '.' | head ':-' tail '.'
  5.      query ::- '?-' tail '.'
  6.      command ::- '@' file_name '.'
  7.      head ::- goal
  8.      tail ::- goal | goal ',' tail
  9.      goal ::- constant | variable | structure
  10.      constant ::- {quoted string} | {token beginning with 'a' .. 'z'}
  11.      variable ::- {token beginning with 'A' .. 'Z' or '_' }
  12.      structure ::- functor '(' component_list ')'
  13.      functor ::- {token beginning with 'a' .. 'z'}
  14.      component_list ::- goal | goal ',' components_list
  15.      file_name ::- {legitimate DOS file name, must be surrounded with
  16.                     single quotes if it contains a '.',':' or '\'}
  17.  
  18.  
  19. Figure 7 - Grammar of rules and queries.
  20.